package fanxing.ff002method;

import java.util.ArrayList;
import java.util.List;

public class Testwenhao {
	public static void main(String[] args) {
		List<Person> list = new ArrayList<>();
		list.add(new Person("2", "tonm", 44));
		 show2(list);
	}
	public static void show2(List<? extends IPerson> list) {
		list.get(0).show();
	}
}


interface IPerson{
	public String show();
}
